
<?php
if(empty($files))
{
	?>
	<H3><?php echo(__('NO LOG FILES PRESENT'));?></H3>
<?php
}
else
{?>
<table cellpadding="0" cellspacing="0">
<th><?php echo __("S.No.")?></th>
<th><?php echo __("Filename")?></th>
<th><?php echo __("Actions")?></th>
	<?php $i=1;
			foreach($files[1] as $file){?>
	<tr>
	<td><?php echo $i;?> </td>
	<td><?php  $str = str_replace(".log", "",$file);
			echo $str?> </td>
	<td>
	<?php if($str !='home')
		{
			echo $html->link(__('View'),array('action'=>'admin_viewLog',$str));?>|
		<?php echo $html->link(__('Clear'),array('action'=>'admin_clearLog',$str),null,__('Are you sure to clear the content of this log?'),true);
				echo " | ".$html->link(__("Download"),array('action'=>"admin_viewLog",$str,1));
		} ?>
	</td>
	</tr>
<?php $i++;} 
	}?>
</table>

		